class SessionInitController < ApplicationController
  def administrator
    @texto = params[:texto]
  end

  def moderator
    @texto = params[:texto]
  end

  def contributor
    @texto = params[:texto]
  end

  def redirect
    rolGet = params[:rol]
    if(rolGet== MwCatalogRol.find(1).rol_name)
      redirect_to :action => "administrator", :rol => rolGet, :texto => "Hola Administrador"

    elsif(rolGet == MwCatalogRol.find(2).rol_name)
      redirect_to :action => "moderator", :rol => rolGet, :texto => "Hola Moderador"

    elsif(rolGet == MwCatalogRol.find(3).rol_name)
      redirect_to  :action => "contributor", :rol => rolGet, :texto => "Hola Contribuyente"
    end
  end
end
